package com.zlh.demo.test.consumer;

import java.util.concurrent.BlockingQueue;

import org.apache.commons.lang3.RandomStringUtils;

public class Producer {

	private  static BlockingQueue sharedQueue;

	public Producer(BlockingQueue sharedQueue) {
		this.sharedQueue = sharedQueue;
	}

	public static void produce() throws InterruptedException {
		
		sharedQueue.put(RandomStringUtils.random(1));
		
	
	}
	
	

}
